import request from "@/utils/request";

// 查询分类信息列表
export function listKey(query) {
  return request({
    url: "/ds/key/list",
    method: "get",
    params: query,
  });
}

// 查询分类信息详细
export function getKey(id) {
  return request({
    url: "/ds/key/" + id,
    method: "get",
  });
}

// 新增分类信息
export function addKey(data) {
  return request({
    url: "/ds/key",
    method: "post",
    data: data,
  });
}

// 修改分类信息
export function updateKey(data) {
  return request({
    url: "/ds/key",
    method: "put",
    data: data,
  });
}

// 删除分类信息
export function delKey(id) {
  return request({
    url: "/ds/key/" + id,
    method: "delete",
  });
}

// 导出分类信息
export function exportKey(query) {
  return request({
    url: "/ds/key/export",
    method: "get",
    params: query,
  });
}
